function validate2submit(){
	var name = $('#user_name').val();
	var password = $('#user_password').val();
	var reg = /^\s+|\s+$/g;
	name = name.replace(reg,"");
	password = password.replace(reg,"");
	var stop = 0;
	if(name==""){
		stop++;
		alert("账号不能为空");
	}
	if(password==""){
		stop++;
		alert("密码不能为空");
	}
	if(stop==0){
		$('#submitForm').submit();
	}
}